<html {$html_attrs}>
<head>
<title>POA Anual Executivo</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
{BEGIN style_block}
<style>
#height100{$id} {padding:10px;}
#toplinks_caption{$id} {padding:0px 30px;font-size:12px;font-weight:bold;}
#mastertable_block{$id} {margin-left:50px;margin-top:10px}
#toplinks_block{$id} {width:100%;padding:3px;padding-left:30px}
#toplinks_block{$id} span {padding-left:5px;}
#search_records_block{$id} { padding-left:5px;}
#search_records_block{$id} > * {vertical-align:middle;}
#search_records_block{$id} select {margin:3px 0px;}
#login_block{$id} {padding:10px; margin-bottom:3px}
#login_block{$id} * {margin-left:5px; padding:5px 0px;}
#menu_block{$id} {padding:10px;}
#menu_block{$id} * {list-style-type:none;}
#menu_block{$id} IMG {vertical-align:middle;}
#record_controls{$id} {padding:10px 10px;text-align: left;}
#record_controls{$id} span{padding-left:10px;}
#recordcontrolsadd_block{$id} {padding:10px 10px;border: solid; border-width: 1px; border-color: #C0C0C0;text-align: right;}
#grid_block{$id} {border:solid 1px #C0C0C0;}
.listIcons img.listIcon{margin:0 3px;opacity:0.3;filter:alpha(opacity=30);}
.grid_recordheader{$id} {padding:0 5px 5px;vertical-align:top;}
.grid_recordheader{$id} a {margin:0px 5px;}
body {margin:0px;padding:0px;}
.bottomPanelBorder{
	/*margin-right: 10px;*/
	padding-bottom: 18px;
	border-left: 1px solid #C0C0C0;
	border-right: 1px solid #C0C0C0;
	border-bottom: 1px solid #C0C0C0;
}
#searchform{$id}{float: left;}
#searchPanelContainer{$id}{
	width: 200px;
	float: left;
	position:absolute;
}
.searchOptions {margin-top: -10px;}
/*report styles*/
table.report {border-collapse: collapse} 
table.report td {padding: 2px;border-width: 1px; border-style: solid; border-color: #cccccc;}
div.page_block{clear:left;}
td.group_1{background-color: FFFFE0;}
td.group_2{background-color: FFFFE0;}
td.group_3{background-color: FFFFE0;}
td.group_4{background-color: FFFFE0;}
td.group_5{background-color: FFFFE0;}
td.group_6{background-color: FFFFE0;}
td.group_7{background-color: D2B48C;}
td.nbgroup_1{background-color: FFFFE0;border-style:none;}
td.nbgroup_2{background-color: FFFFE0;border-style:none;}
td.nbgroup_3{background-color: FFFFE0;border-style:none;}
td.nbgroup_4{background-color: FFFFE0;border-style:none;}
td.nbgroup_5{background-color: FFFFE0;border-style:none;}
td.nbgroup_6{background-color: FFFFE0;border-style:none;}
td.nbgroup_7{background-color: D2B48C;border-style:none;}
td.header_1{background-color: D8D8BE;}
td.header_2{background-color: D8D8BE;}
td.header_3{background-color: D8D8BE;}
td.header_4{background-color: D8D8BE;}
td.header_5{background-color: D8D8BE;}
td.header_6{background-color: D8D8BE;}
td.header_7{background-color: B29977;}
td.pagesummary{background-color:#ffffbb;}
td.globalsummary{background-color:#ffe0b0;}
#export_links{$id} * {padding:0}
</style>
{END style_block}
</head>
<body marginheight=0 marginwidth=0 {$bodyattrs}>
{BEGIN body}
<div id="height100{$id}">
{$header}

{BEGIN toplinks_block}
<div id="toplinks_block{$id}">

&nbsp;<font><b>POA&nbsp;Anual&nbsp;Executivo</b></font>





{BEGIN print_link}
<span>
<a target="_blank" href="poa_anual_executivo_print.php" {$printpictlink_attrs}>

<a target="_blank" href="poa_anual_executivo_print.php" {$printlink_attrs}>

<img src="botoes/bt_imprimiresta.png" border="0">
</a></span>
{END print_link}
{BEGIN printall_link}
<span>
<a target="_blank" href="poa_anual_executivo_print.php?all=1" {$printallpictlink_attrs}>

<a target="_blank" href="poa_anual_executivo_print.php?all=1" {$printalllink_attrs}>
<img src="botoes/bt_imprimirtudo.png" border="0">
</a></span>
{END printall_link}



{BEGIN export_link}
<span id="export_links{$id}">
<a href="poa_anual_executivo_print.php?all=1&format=excel" {$excellink_attrs}><img alt="Expot to Excel" src="images/excel.gif" border="0"></a>
<a href="poa_anual_executivo_print.php?all=1&format=word" {$wordlink_attrs}><img alt="Export to Word" src="images/word.gif" border="0" ></a>
</span>
{END export_link}
</div>
{END toplinks_block}

{BEGIN search_records_block} 
<div id="recordcontrolsadd_block{$id}" class="shade">

<span id="search_records_block{$id}" class="shade">
        {BEGIN searchform}
    	<!-- Search panel header for horizontal layouts -->
		<span id="searchform{$id}" align="absmiddle">
	<span id="searchPanelHeader{$id}">				
		{$simpleSearchFieldCombo}
		{$simpleSearchTypeCombo}		
		{BEGIN searchform_text}
		<input type="text" {$searchfor_attrs} size="25">
		{END searchform_text}
		&nbsp;
		{BEGIN searchform_search}
			<span class="buttonborder"><input class="button" type="button" style="width: 18px; background-image: url(images/search/search.gif);" {$searchbutton_attrs} ></span>
		{END searchform_search}
		&nbsp;
		{BEGIN searchform_showall}	
		<span id="showall{$id}" class="buttonborder"><input type="button" class="button" value="Mostrar Todos" {$showallbutton_attrs}></span>
		{END searchform_showall}
	</span>
	{BEGIN searchPanelTopButtons}
	<span>
		&nbsp;
		<span class="buttonborder"><input class="button" type="button" id="showSrchWin{$id}" style="width: 18px; background-image: url(images/search/showWindowPin.gif);" {$showHideSearchWin_attrs} ></span>
		&nbsp;		
		<span class="buttonborder"><input class="button" type="button" id="showOptPanel{$id}" style="width: 18px; background-image: url(images/search/showOptions.gif);" {$showHideSearchPanel_attrs} ></span>
	</span>
	{END searchPanelTopButtons}
</span> 
    {END searchform}
    {BEGIN details_block}
    <span  id="detFound{$id}">Ítens Encontrados: <b>{$records_found}</b>&nbsp;&nbsp;&nbsp;&nbsp;</span>
    {END details_block}
    {BEGIN pages_block}
    <span id="pageOf{$id}">Página <b>{$page}</b> de <b>{$maxpages}</b></span>
    {END pages_block}

    &nbsp;&nbsp;&nbsp;&nbsp;
        {BEGIN recordspp_block}
	<span class="center_block">
		Grupos por página:&nbsp;
	<select onChange="javascript: document.location='poa_anual_executivo_report.php?pagesize='+this.options[this.selectedIndex].value;">
		<option value="1" {$rpp1_selected}>1</option>
		<option value="3" {$rpp3_selected}>3</option>
		<option value="5" {$rpp5_selected}>5</option>
		<option value="10" {$rpp10_selected}>10</option>
		<option value="50" {$rpp500_selected}>50</option>
		<option value="100" {$rpp100_selected}>100</option>
		<option value="-1" {$rpp_all_selected}>Mostrar Todos</option>
	</select>
	</span>
	{END recordspp_block}
</span>
</div>
{END search_records_block} 


<!-- search panel and window -->
<div id="searchPanelContainer{$id}" class="searchPanelContainer">
{$adv_search_panel}
</div>

<div moveForSearch="move{$id}" {$marginStyle}>

{BEGIN recordcontrols_block}
<div id="record_controls{$id}">


{BEGIN record_controls}




{END record_controls}
</div>
{END recordcontrols_block}

<div id="usermessage{$id}" class="message">{$user_message}</div>

<TABLE class=report WIDTH="auto" CELLPADDING=1 CELLSPACING=0 BORDER=0 style="border: solid; border-width: 1px; border-color: black;">
{BEGIN grid_row}
<!-------------------------------------  group headers ----------------------------------------->
{BEGIN id_uc_newgroup}
<tr>
<td class=header_1 colspan=16>
UC:&nbsp;
<font style="font-weight:900">{$id_uc_grval}</font></td>
</tr>
{END id_uc_newgroup}
{BEGIN objetivo_sisema_newgroup}
<tr>
<td class=group_1>&nbsp;</td>
<td class=header_2 colspan=15>
Objetivo Sisema:&nbsp;
<font style="font-weight:900">{$objetivo_sisema_grval}</font></td>
</tr>
{END objetivo_sisema_newgroup}
{BEGIN macro_objetivo_newgroup}
<tr>
<td class=group_1>&nbsp;</td>
<td class=group_2>&nbsp;</td>
<td class=header_3 colspan=14>
Macro Objetivo:&nbsp;
<font style="font-weight:900">{$macro_objetivo_grval}</font></td>
</tr>
{END macro_objetivo_newgroup}
{BEGIN objetivo_estrategico_newgroup}
<tr>
<td class=group_1>&nbsp;</td>
<td class=group_2>&nbsp;</td>
<td class=group_3>&nbsp;</td>
<td class=header_4 colspan=13>
Objetivo Estrategico:&nbsp;
<font style="font-weight:900">{$objetivo_estrategico_grval}</font></td>
</tr>
{END objetivo_estrategico_newgroup}
{BEGIN programa_manejo_newgroup}
<tr>
<td class=group_1>&nbsp;</td>
<td class=group_2>&nbsp;</td>
<td class=group_3>&nbsp;</td>
<td class=group_4>&nbsp;</td>
<td class=header_5 colspan=12>
Programa Manejo:&nbsp;
<font style="font-weight:900">{$programa_manejo_grval}</font></td>
</tr>
{END programa_manejo_newgroup}
{BEGIN subprograma_newgroup}
<tr>
<td class=group_1>&nbsp;</td>
<td class=group_2>&nbsp;</td>
<td class=group_3>&nbsp;</td>
<td class=group_4>&nbsp;</td>
<td class=group_5>&nbsp;</td>
<td class=header_6 colspan=11>
Subprograma:&nbsp;
<font style="font-weight:900">{$subprograma_grval}</font></td>
</tr>
{END subprograma_newgroup}
{BEGIN atividade_newgroup}
<tr>
<td class=group_1>&nbsp;</td>
<td class=group_2>&nbsp;</td>
<td class=group_3>&nbsp;</td>
<td class=group_4>&nbsp;</td>
<td class=group_5>&nbsp;</td>
<td class=group_6>&nbsp;</td>
<td class=header_7 colspan=10>
Atividade:&nbsp;
<font style="font-weight:900">{$atividade_grval}</font></td>
</tr>
<tr>
<td class=group_1>&nbsp;</td>
<td class=group_2>&nbsp;</td>
<td class=group_3>&nbsp;</td>
<td class=group_4>&nbsp;</td>
<td class=group_5>&nbsp;</td>
<td class=group_6>&nbsp;</td>
<td class=group_7>&nbsp;</td>
<td class=blackshade>O Que</td>
<td class=blackshade>Onde</td>
<td class=blackshade>Data Inicio Plan</td>
<td class=blackshade>Data Fim Plan</td>
<td class=blackshade>Data Inicio Exec</td>
<td class=blackshade>Data Fim Exec</td>
<td class=blackshade>Valor Plan</td>
<td class=blackshade>Valor Exec</td>
<td class=blackshade>Situacao</td>
</tr>
{END atividade_newgroup}
<!-------------------------------------  data ----------------------------------------->
{BEGIN row_data}
<tr>
			<td class=group_1>&nbsp;</td>
			<td class=group_2>&nbsp;</td>
			<td class=group_3>&nbsp;</td>
			<td class=group_4>&nbsp;</td>
			<td class=group_5>&nbsp;</td>
			<td class=group_6>&nbsp;</td>
			<td class=group_7>&nbsp;</td>
	<td class=data>{$o_que_value}</td>
	<td class=data>{$onde_value}</td>
	<td class=data>{$data_inicio_plan_value}</td>
	<td class=data>{$data_fim_plan_value}</td>
	<td class=data>{$data_inicio_exec_value}</td>
	<td class=data>{$data_fim_exec_value}</td>
	<td class=data>{$valor_plan_value}</td>
	<td class=data>{$valor_exec_value}</td>
	<td class=data>{$situacao_value}</td>
</tr>
{END row_data}
<!-------------------------------------  group summary ----------------------------------------->
{END grid_row}
<tr>
<td class=blackshade>O Que</td>
<td class=blackshade>Onde</td>
<td class=blackshade>UC</td>
<td class=blackshade>Data Inicio Plan</td>
<td class=blackshade>Objetivo Sisema</td>
<td class=blackshade>Macro Objetivo</td>
<td class=blackshade>Data Fim Plan</td>
<td class=blackshade>Objetivo Estrategico</td>
<td class=blackshade>Data Inicio Exec</td>
<td class=blackshade>Programa Manejo</td>
<td class=blackshade>Data Fim Exec</td>
<td class=blackshade>Valor Plan</td>
<td class=blackshade>Subprograma</td>
<td class=blackshade>Atividade</td>
<td class=blackshade>Valor Exec</td>
<td class=blackshade>Situacao</td>
</tr>
<!--------------------------------------global summary-------------------------------------------->
<tr>
	<td class=globalsummary colspan=16>Resumo Global 
	 {$global_total_cnt} - Total de registros</td>
</tr>
<!--  Sum -->
<tr>
			<td class=globalsummary>Soma</td>
			<td class=globalsummary>&nbsp;</td>
			<td class=globalsummary>&nbsp;</td>
			<td class=globalsummary>&nbsp;</td>
			<td class=globalsummary>&nbsp;</td>
			<td class=globalsummary>&nbsp;</td>
			<td class=globalsummary>&nbsp;</td>
			<td class=globalsummary>&nbsp;</td>
			<td class=globalsummary>&nbsp;</td>
			<td class=globalsummary>&nbsp;</td>
			<td class=globalsummary>&nbsp;</td>
			<td class=globalsummary>{$global_totalvalor_plan_sum}</td>
			<td class=globalsummary>&nbsp;</td>
			<td class=globalsummary>&nbsp;</td>
			<td class=globalsummary>{$global_totalvalor_exec_sum}</td>
			<td class=globalsummary>&nbsp;</td>
</tr>	
</table>
{BEGIN pagination_block}
<div class="page_block">
{$pagination}
</div>
{END pagination_block}
</div>
{$footer}
</div>
{END body}
</body>
</html>